package com.example.zk;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@EnableTransactionManagement //开启事务
@EnableDiscoveryClient // zookeeper 注册中心扫描
@EnableFeignClients // 打开 feign
@EnableCircuitBreaker//打开Hystrix断路器
@MapperScan("com.example.zk.mapper")//将 到层扫描进来
public class ZookeeperclientApplication {

	public static void main(String[] args) {
		SpringApplication.run(ZookeeperclientApplication.class, args);
	}

}

